package br.ufpe.cin.imlm2.jbeat.paths;

import br.ufpe.cin.imlm2.util.options.Option;
import br.ufpe.cin.imlm2.util.options.OptionsParser;

public class PathOptions extends OptionsParser {

	public static final String OUTPATH = "output";
	public static final String MAXPATHLENGTH = "maxLength";

	public PathOptions() {
		super( "buildpaths" );
		this.addOption( new Option( OUTPATH, "o", "File output path or STDOUT to write to"
				+ " the standard output", "STDOUT" ) );
		// null == Unlimited length
		this.addOption( new Option( MAXPATHLENGTH, "l", "Max path length.", null, Integer.class,
				null ) );
	}

	public String getOutpath() {
		return (String) this.getOptionInternal( OUTPATH ).getValue();
	}

	public Integer getMaxPathLength() {
		return (Integer) this.getOptionInternal( MAXPATHLENGTH ).getValue();
	}
}
